package net.oschina.arvin.admin.web.converter;

import net.oschina.arvin.admin.model.vo.ConverterVO;
import net.oschina.arvin.admin.util.JsonUtil;
import org.springframework.core.convert.converter.Converter;

/**
 * @author Arvin
 * @time 2017/11/20 22:53
 */
public class StringToConverterVOConverter implements Converter<String, ConverterVO> {

    @Override
    public ConverterVO convert(String source) {

        System.out.println("ConverterVOString： " + source);

        return JsonUtil.toObject(source, ConverterVO.class, true);
    }
}
